<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.web.new12306.conn.*" %> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- @author 蔡艳 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>12306购票系统管理员模式</title>
<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="js/util/easyui/themes/icon.css">

<script type="text/javascript" src="js/util/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="js/util/easyui/jquery.easyui.min.js"></script>
<style type="text/css">
.left{
float:right;
width:150px;}
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div class="left">
 <input type="button" class="easyui-linkbutton" iconCls="icon-ok" style="width:100px; height: 32px" onclick="window.location.href='userLogin.jsp'" value="用户登录">
</div> 
 <form name="form1" method="post" action="/new12306/adminLoginServlet">
 <center><h2>管理员登录</h2></center>
    <div style="margin-left:470px">   
    <div class="easyui-panel" style="width:480px;padding:50px 60px">
    <table>
	    <tr>
	        <td>管理员:</td>
	        <td><input class="easyui-textbox" name="adminname"></td>
	        <td></td>
	    </tr>
	    <tr>
	        <td></td>
	    </tr> 
	    <tr>
	        <td>密码:</td>
	        <td><input class="easyui-passwordbox" name="password" ></td>
	        <td></td>
   		</tr>
    	<tr>
        	<td></td>
    	</tr> 
    	<tr>
         	<td>验证码:</td>
        	<td><input class="easyui-textbox" name="code"></td>
         	<td><span class="text_cray1"><img id="codeImg" src="code" alt="点击换一张" style="cursor: hand" 
             onclick="javascript:reloadcode()" /></span>&nbsp;&nbsp;刷新</td>
      	</tr>
    	<tr>
        	<td></td>
    	</tr> 
      	<tr>
            <td></td>
            <td><input type="submit" value="登录" ></td>
            <td></td>
        </tr>
        <tr>
        <td height="20" colspan="3" align="center">
			<%
				String msg =(String)request.getAttribute("msg");
				if (msg!=null) {
			%>
			<%= msg %>
			<%
				}
			%>
		</td>
      </tr>
    </table>    
   </div>    
</div>
</form>
</body>
</html>
